package com.tencent.wuyanzu.whattoeat;

import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import org.java_websocket.client.WebSocketClient;

import java.io.Serializable;

public class VoteFragment extends Fragment {

    private static final String ARG_PARAM1 = "param1";

    private WebSocketClient client;

    public VoteFragment() {
        // Required empty public constructor
    }

    public static VoteFragment newInstance(WebSocketClient c) {
        VoteFragment fragment = new VoteFragment();
        Bundle args = new Bundle();
        args.putSerializable(ARG_PARAM1, (Serializable) c);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            client =(WebSocketClient) getArguments().getSerializable(ARG_PARAM1);
        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.fragment_vote, container, false);
    }

   

}
